package com.h3c.ptability.entity;

import java.util.Date;
import javax.persistence.*;
    import io.swagger.annotations.ApiModel;
    import io.swagger.annotations.ApiModelProperty;

/**
 * Copyright (C), 2020-2020, h3c
 * FileName: PtMenu
 *
 * @Author: l22886
 * @Date: 2022-03-14
 * Description: pt_menu 实体
 * Version: 1.0
 */
@ApiModel(value="PtMenu对象", description="")
@Table(name = "pt_menu")
public class PtMenu {


    @ApiModelProperty(value = "权限项编码")
    @Column(name = "item_id")
    private String itemId;

    @ApiModelProperty(value = "应用编码")
    @Column(name = "app_id")
    private String appId;

    @ApiModelProperty(value = "权限项类型：1 菜单; 2 前端组件；")
    @Column(name = "item_type")
    private Integer itemType;

    @ApiModelProperty(value = "权限项名称")
    @Column(name = "item_name")
    private String itemName;

    @ApiModelProperty(value = "权限项名称-英文")
    @Column(name = "item_name_en")
    private String itemNameEn;

    @ApiModelProperty(value = "权限项路径（支持通配符配置）")
    @Column(name = "item_path")
    private String itemPath;

    @ApiModelProperty(value = "上级权限项编码（-1表示顶级菜单或服务接口）")
    @Column(name = "parent_item_id")
    private String parentItemId;

    @ApiModelProperty(value = "是否需要授权：1 需要；2 不需要；")
    @Column(name = "auth_flag")
    private Integer authFlag;

    @ApiModelProperty(value = "是否启用：1 启用；2 停用；")
    @Column(name = "use_flag")
    private Integer useFlag;

    @ApiModelProperty(value = "菜单图标")
    @Column(name = "menu_icon")
    private String menuIcon;

    @ApiModelProperty(value = "打开位置")
    @Column(name = "menu_target")
    private String menuTarget;

    @ApiModelProperty(value = "排序")
    @Column(name = "sort_id")
    private Integer sortId;

    @ApiModelProperty(value = "权限项说明")
    @Column(name = "item_remark")
    private String itemRemark;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "创建人工号")
    @Column(name = "creator_id")
    private String creatorId;

    @ApiModelProperty(value = "更新时间")
    @Column(name = "update_time")
    private Date updateTime;

    @ApiModelProperty(value = "更新人工号")
    @Column(name = "updator_id")
    private String updatorId;

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public Integer getItemType() {
        return itemType;
    }

    public void setItemType(Integer itemType) {
        this.itemType = itemType;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getItemNameEn() {
        return itemNameEn;
    }

    public void setItemNameEn(String itemNameEn) {
        this.itemNameEn = itemNameEn;
    }

    public String getItemPath() {
        return itemPath;
    }

    public void setItemPath(String itemPath) {
        this.itemPath = itemPath;
    }

    public String getParentItemId() {
        return parentItemId;
    }

    public void setParentItemId(String parentItemId) {
        this.parentItemId = parentItemId;
    }

    public Integer getAuthFlag() {
        return authFlag;
    }

    public void setAuthFlag(Integer authFlag) {
        this.authFlag = authFlag;
    }

    public Integer getUseFlag() {
        return useFlag;
    }

    public void setUseFlag(Integer useFlag) {
        this.useFlag = useFlag;
    }

    public String getMenuIcon() {
        return menuIcon;
    }

    public void setMenuIcon(String menuIcon) {
        this.menuIcon = menuIcon;
    }

    public String getMenuTarget() {
        return menuTarget;
    }

    public void setMenuTarget(String menuTarget) {
        this.menuTarget = menuTarget;
    }

    public Integer getSortId() {
        return sortId;
    }

    public void setSortId(Integer sortId) {
        this.sortId = sortId;
    }

    public String getItemRemark() {
        return itemRemark;
    }

    public void setItemRemark(String itemRemark) {
        this.itemRemark = itemRemark;
    }

    public Date getCreateTime() {
        return createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(String creatorId) {
        this.creatorId = creatorId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdatorId() {
        return updatorId;
    }

    public void setUpdatorId(String updatorId) {
        this.updatorId = updatorId;
    }

    @Override
    public String toString() {
        return "PtMenu{" +
                "itemId=" + itemId +
                ", appId=" + appId +
                ", itemType=" + itemType +
                ", itemName=" + itemName +
                ", itemNameEn=" + itemNameEn +
                ", itemPath=" + itemPath +
                ", parentItemId=" + parentItemId +
                ", authFlag=" + authFlag +
                ", useFlag=" + useFlag +
                ", menuIcon=" + menuIcon +
                ", menuTarget=" + menuTarget +
                ", sortId=" + sortId +
                ", itemRemark=" + itemRemark +
                ", createTime=" + createTime +
                ", creatorId=" + creatorId +
                ", updateTime=" + updateTime +
                ", updatorId=" + updatorId +
                "}";
    }
}
